<?php

require_once("config.php");

class User extends MySQLDatabase {

    private $errors = 0;

    private function validate($user_data) {
        foreach($user_data as $data) {
            if($data == '') {
                $this->errors++;
            }
        }
        if($this->errors > 0) {
            return false;
        }
        else {
            return true;
        }
    }

    public function create() {
        if ($this->validate()) {

        }
    }

    public function update() {
        if ($this->validate()) {

        }
    }

    public function delete() {

    }
}

?>
